package com.ocn.li.scmdy.modules.app.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class AccountsMonitor extends Accounts {

	private static final long serialVersionUID = 1L;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date loginTime;  //登录时间  用于日志监控系统
	public Date getLoginTime() {
		return loginTime==null?new Date():loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	
}
